package com.zpz.framework.zpzoauth.config.oauth.authorization.exouath;

/**
 * @author zhangpanzhi
 * @time 2019-07-09
 * @description 未经本人允许请勿随便改动，尊重劳动
 * */
public class ZpzOauthIntegrationAuthenticationContext {

    private static ThreadLocal<ZpzOauthIntegrationAuthentication> holder = new ThreadLocal<>();

    public static void set(ZpzOauthIntegrationAuthentication integrationAuthentication){
        holder.set(integrationAuthentication);
    }

    public static ZpzOauthIntegrationAuthentication get(){
        return holder.get();
    }

    public static void clear(){
        holder.remove();
    }
}
